package com.alibaba.japan.club.runtime.springmvc.pipeline;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.core.PriorityOrdered;

/**
 * 
 * @author:shaochuan.wangsc
 * @date:2009-4-15
 * 
 */
public interface JapanAroundPipeline extends PriorityOrdered {

	/**
	 * 执行请求前执行该方法
	 * 
	 * @author:shaochuan.wangsc
	 * @date:2009-4-18
	 * @param request
	 * @param response
	 */
	public void preHandleAroundPipeline(HttpServletRequest request, HttpServletResponse response) throws Exception;

	/**
	 * 执行请求后执行该方法(尽管请求抛出异常,同样会执行该方法)
	 * 
	 * @author:shaochuan.wangsc
	 * @date:2009-4-18
	 * @param request
	 * @param response
	 */
	public void postHandleAroundPipeline(HttpServletRequest request, HttpServletResponse response) throws Exception;
}
